#ifndef _2_74_H
#define _2_74_H

#include<limits.h>


int tsub_ovf(int x, int y){
    int result = x - y;

    bool pos_over = !(x & INT_MIN) && (y & INT_MIN) && (result & INT_MIN);
    bool neg_over = (x & INT_MIN) && !(y & INT_MIN) && !(result & INT_MIN);

    (!pos_over || (result = 1) && (!neg_over || (result = 1)));

    return result;
}


#endif // _2_74_H

